<?php

class Game
{
	private $id;			// (int), GameId.
	private $creator;		// (User), The game creator.
	private $map;			// (Map), The game board map.
	private $maxPlayers;	// (int).
	private $turn;			// (int), The game turn.
	private $started;		// (bool), Game started?
	private $finished;		// (bool), Game finished?
	private $players;		// (array of Player), Players.

	public function __construct( $id, $creator, $map, $maxPlayers, $turn, $started, $finished, $players )
	{
		$this->id = $id;
		$this->creator = $creator;
		$this->map = $map;
		$this->maxPlayers = $maxPlayers;
		$this->turn = $turn;
		$this->started = $started;
		$this->finished = $finished;
		$this->players = $players;
	}

	public function id()
	{
		return $this->id;
	}

	public function creator()
	{
		return $this->creator;
	}

	public function map()
	{
		return $this->map;
	}

	public function maxPlayers()
	{
		return $this->maxPlayers;
	}

	public function turn()
	{
		return $this->turn;
	}

	public function started()
	{
		return $this->started;
	}

	public function finished()
	{
		return $this->finished;
	}

	public function players()
	{
		return $this->players;
	}
}
